package com.dysf.service.impl;

import com.dysf.beans.Role;
import com.dysf.dao.RoleDao;
import com.dysf.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author dysfzl
 * @Date 2022-01-07 15:31
 * @Copyright xx科技有限公司 Copyright (c)
 * @Version 1.0
 */
@Service
public class RoleServiceImpl  implements RoleService {
    @Autowired
    RoleDao roleDao;

    public Role get(Integer id) {
        System.out.println("查询Role");
        return roleDao.get(id);
    }

    public void add(Role role) {
        System.out.println("添加Role");
        roleDao.add(role);
    }

    public void delete(Integer id) {
        System.out.println("删除Role");
        roleDao.delete(id);

    }

    public void update(Role role) {
        System.out.println("修改Role");
        roleDao.update(role);
    }
}
